import { store } from '@/store'

export default {
	data() {
		return {
			pageInfo: {
				page: 1,
				count: 0,
				defaultPageSize: store.state.config.defaultPageSize,
				pageSizeArr: [...store.state.config.pageSizeArr]
			}
		}
	},
	methods: {
		getQueryParams(obj) {
			return Object.assign({}, obj, {
				page: this.pageInfo.page,
				pagesize: this.pageInfo.defaultPageSize
			})
		}
	}
}
